package com.lw.yygh.model.hosp;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.math.BigDecimal;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * Schedule
 * </p>
 *
 * @author qy
 */
@Data
@Document("Schedule")
public class Schedule{
	
	private static final long serialVersionUID = 1L;

	@Id
	private String id;

	//医院编号
	@Indexed //普通索引
	private String hoscode;

	//科室编号
	@Indexed //普通索引
	private String depcode;

	//职称
	private String title;

	//医生名称
	private String docname;

	//擅长技能
	private String skill;

	//排班日期
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date workDate;

	//排班时间（0：上午 1：下午）
	private Integer workTime;

	//可预约数
	private Integer reservedNumber;

	//剩余预约数
	private Integer availableNumber;

	//挂号费
	private BigDecimal amount;

	//排班状态（-1：停诊 0：停约 1：可约）
	private Integer status;

	//排班编号（医院自己的排班主键）
	@Indexed //普通索引
	private String hosScheduleId;

	private Date createTime;

	private Date updateTime;

	private Integer isDeleted;

	@Transient
	Map<String,Object> param =new HashMap<>();
}

